package com.smallcr.utils;

import java.io.Serializable;

import com.alibaba.fastjson.JSON;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;


@ApiModel(value = "ResponseResult", description = "response标准格式，其中result中包含子集Model")
public class ResponseResult implements Serializable {

	private static final long serialVersionUID = 1L;

	@ApiModelProperty("状态码")
	private int status;

	@ApiModelProperty("操作时间戳")
	private String operateTime;

	@ApiModelProperty("返回描述信息")
	private String returnmemo;

	@ApiModelProperty("返回文本信息")
	private String msg;

	@ApiModelProperty("结果集")
	private Object result;

	/**
	 * @param status
	 * @param operateTime
	 * @param returnmemo
	 * @param msg
	 * @param result
	*/

	public ResponseResult(int status, String operateTime, String returnmemo, String msg, Object result) {
		super();
		this.status = status;
		this.operateTime = operateTime;
		this.returnmemo = returnmemo;
		this.msg = msg;
		this.result = result;
	}

	public ResponseResult(int status, String operateTime, String returnmemo, String msg) {
		super();
		this.status = status;
		this.operateTime = operateTime;
		this.returnmemo = returnmemo;
		this.msg = msg;
	}

	public int getStatus() {
		return status;
	}

	public void setStatus(int status) {
		this.status = status;
	}

	public String getOperateTime() {
		return operateTime;
	}

	public void setOperateTime(String operateTime) {
		this.operateTime = operateTime;
	}

	public String getReturnmemo() {
		return returnmemo;
	}

	public void setReturnmemo(String returnmemo) {
		this.returnmemo = returnmemo;
	}

	public String getMsg() {
		return msg;
	}

	public void setMsg(String msg) {
		this.msg = msg;
	}

	public Object getResult() {
		return result;
	}

	public void setResult(Object result) {
		this.result = result;
	}

	@Override
	public String toString() {
		String json = JSON.toJSONString(this);
		return json;
	}

}
